import {request} from "@/network/request";

function getHomeGoodsAll() {
    return request({url:'/api/index'});
}

function getHomeGoodsByType(type:string ="sales", page:number = 1){
    return request({url:`/api/index?${type}=1&page=${page}`}
    );
}

export{getHomeGoodsAll,getHomeGoodsByType}
